cr equation in cartesian coordinates